<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="stylesheet" type="text/css" href="<?php echo $GLOBALS['base_path']?>public/css/style.css" media="screen" />
        <link rel="shortcut_icon" href="<?php echo $GLOBALS['base_path']?>public/img/icon.ico" />
		<link rel="icon" href="<?php echo $GLOBALS['base_path']?>public/img/icon.png" />
		<title>Foto</title>
        <script type="text/javascript" src="<?php echo $GLOBALS['base_path']?>public/js/fquery.js"></script>
    </head>
    <body>
        <div id="bodyWrapper">
            <?php $this->render('accountbar');?>
            <div class="dummy"></div>
            <?php $this->render('menubar');?>

            <div id="content">
                <div id="messageList">
                <h2>Inbox</h2>
                <?php foreach($messages as $message) :?>
                <div class="messageListMember">
                    <a href="<?php echo $this->createUrl('message/view/' . $message->id);?>"><?php echo $message->subject;?></a><br /><br />
                </div>
                <?php endforeach;?>
                </div>
                <div id="composeNewMessage">
                    <h2>Compose</h2>
                    <form method="post" action="<?php echo $this->createUrl('message/compose');?>">
                        <div class="dtable">
                            <div class="drow">
                                <span class="shead">
                                    <label for="subject">Subjek</label>
                                </span>
                                <span>
                                    <input type="text" id="subject" name="subject" />
                                </span>
                            </div>
                            <div class="drow">
                                <span class="shead">
                                    <label for="body">Isi</label>
                                </span>
                                <span>
                                    <textarea name="body" id="body" cols="40" rows="10"></textarea>
                                </span>
                            </div>
                            <div class="drow">
                                <span class="shead">
                                    Partisipan
                                </span>
                                <span>
                                    <?php foreach($this->auth->getFollowed() as $user) : ?>
                                    <input type="checkbox" name="tags[<?php echo $user->id?>]" value="checked" /> <?php echo $user->getProfileLink();?><br />
                                    <?php endforeach; ?>
                                </span>
                            </div>
                            <div class="drow">
                                <span class="shead">

                                </span>
                                <span>
                                    <input type="submit" name="send" value="Kirim" />
                                </span>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </body>
</html>